Taskname and Signals

The taskname of the program is set to ``ShowDVI-Task'' immediately after the program has started. Before this however, a test is performed, whether a task is already running under this name. If so, then this task is sent a CTRL-E signal. This persuades the other ShowDVI<#458#><#458#> program, to bring its screen to the front and activate its window. The ShowDVI<#459#><#459#> program that has just been started ends its activities right after it has sent the signal.

If, when calling ShowDVI<#461#><#461#> for the second time a filename has been given (Important: Filename <#462#>only<#462#> parameter), then, after the Ctrl-E signal the ARexx command

#math25#

#tex2html_wrap_indisplay1883#

is executed, at which event the filename is substituted for <#464#>s<#464#>, which has been passed on to the program as parameter. However, it is important that the file is searched for, relative to the directory, which has been set at the first started ShowDVI<#465#><#465#>.

ShowDVI<#466#><#466#> uses another signal -- the Ctrl-F signal. If ShowDVI<#467#><#467#> receives this signal, then the ShowDVI<#468#><#468#> screen is pulled to the front and the current file is loaded again.

Thus you can communicate with the ShowDVI<#469#><#469#> program in a limited fashion, even if you are not the owner of ARexx. You can at least bring it to the front, activate it and reload the current DVI file with a signal. You can send the signal from your own program, terminate with the CLI command <#470#>break<#470#>, or simply transmit by calling ShowDVI<#471#><#471#> again.

Another word to the automatic activation of ShowDVI<#472#><#472#>. If you activate ShowDVI<#473#><#473#> with Ctrl-E or Ctrl-F, then it will remember the window active before it. Now, if you push the ShowDVI<#474#><#474#> screen to the back again with the ESC key, then the window active previously is activated automatically.

ShowDVI<#475#><#475#> takes another signal in consideration. Being the Ctrl-C. With this key combination you can end ShowDVI<#476#><#476#> anytime in practically every situation, without a question.